#include <bits/stdc++.h>
using namespace std;
int n,r[100005],p,b=0,a;
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    scanf("%d",&n);
    for(int i=1;i<=n;i++){
        scanf("%d",&p);
        r[p]++;
        if(p>b)b=p;
    }
    for(int i=1;i<=b;i++){
        if(r[i]!=0&&a<r[i])a+=r[i];
    }
    printf("%d",a);
    return 0;
}
